﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CustomerSearch.ascx.cs" Inherits="PayrollHR.Administration.Modules.CustomerSearchControl" %>

<%@ Register Src="ToolTipLabelControl.ascx" TagName="ToolTipLabelControl" TagPrefix="uc1" %>
<%@ Register Src="DatePicker.ascx" TagName="DatePicker" TagPrefix="uc2" %>
<%@ Register Src="DecimalTextBox.ascx" TagName="DecimalTextBox" TagPrefix="uc3" %>
<script type="text/javascript">
    function hideshow() {
        if (!document.getElementById)
            return
        var which = document.getElementById('adiv')
        if (which.style.display == '') {
            which.style.display = "none"
            $('#a_tbnotesverbergen').text('Show Advanced');
        }
        else {
            //which.style.display = "block"
            which.style.display = ''
            $('#a_tbnotesverbergen').text('Hide Advanced');
        }
        var which2 = document.getElementById('adiv2');
        if (which2.style.display == '') {
            which2.style.display = "none"
            $('#a_tbnotesverbergen').text('Show Advanced');
        }
        else {
            //which.style.display = "block"
            which2.style.display = ''
            $('#a_tbnotesverbergen').text('Hide Advanced');
        }
        var which3 = document.getElementById('adiv3');
        if (which3.style.display == '') {
            which3.style.display = "none"
            $('#a_tbnotesverbergen').text('Show Advanced');
        }
        else {
            //which.style.display = "block"
            which3.style.display = ''
            $('#a_tbnotesverbergen').text('Hide Advanced');
        }
    }
    function ClearText() {
        document.getElementById('<%=txtCustomerName.ClientID%>').value = '';
        document.getElementById('<%=txtCustCaseWork.ClientID%>').value = '';
        document.getElementById('<%=txtMobile.ClientID%>').value = '';
        document.getElementById('<%=txtCustParent.ClientID%>').value = '';
        document.getElementById('<%=txtCustHour.ClientID%>').value = '';
        document.getElementById('<%=txtCounselor.ClientID%>').value = '';
        document.getElementById('<%=txtCustStudy.ClientID%>').value = '';
        document.getElementById('<%=txtProCurator.ClientID%>').value = '';
    }
</script>
<div style="border: 1px solid #2F00FF; border-radius: 15px;">
    <div class="title">
        <table style="width: auto">
            <tr>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl runat="server" ID="ToolTipLabelControl1" Text="<% $PayrollResources:admin.customerinfo.custtype.text %>" ToolTip="<% $PayrollResources:admin.customerinfo.custtype.text %>"
                        ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td>
                    <asp:DropDownList ID="ddlCustType" CssClass="adminInput" runat="server" AutoPostBack="false">
                    </asp:DropDownList>
                </td>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl runat="server" ID="ToolTipLabelControl2" Text="<% $PayrollResources:admin.CustomerSearchControl.national.Text %>" ToolTip="<% $PayrollResources:admin.CustomerSearchControl.national.Text %>"
                        ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td>
                    <asp:DropDownList ID="ddlNational" CssClass="adminInput" runat="server" AutoPostBack="false">
                    </asp:DropDownList>
                </td>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl runat="server" ID="ToolTipLabelControl3" Text="<% $PayrollResources:admin.CustomerSearchControl.DayCaseword.Text %>" ToolTip="<% $PayrollResources:admin.CustomerSearchControl.DayCaseword.Text %>"
                        ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td>
                    <asp:DropDownList ID="ddlYear" runat="server" AutoPostBack="false">
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlMonth" runat="server" AutoPostBack="false">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr id="row1">
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl runat="server" ID="lblChannelTitle" Text="<% $PayrollResources:Admin.CustomerSearch.CustName.Text %>" ToolTip="<% $PayrollResources:Admin.CustomerSearch.CustName.ToolTip %>"
                        ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtCustomerName" CssClass="adminInput" runat="server"></asp:TextBox>
                </td>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="lblCustCaseWork" runat="server" Text="<% $PayrollResources:Admin.CustomerInfo.CustomerSearch.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CustomerInfo.CustomerSearch.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtCustCaseWork" CssClass="adminInput" runat="server"></asp:TextBox>
                </td>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="lblCustMobile" runat="server" Text="<% $PayrollResources:Admin.CustomerInfo.CustMobile.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CustomerInfo.CustMobile.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtMobile" CssClass="adminInput" runat="server"></asp:TextBox>
                </td>
                <td class="adminTitle">
                    <a id="a_tbnotesverbergen" href="javascript:hideshow()">Search Advande</a>
                    <a id="aCleare" href="javascript:ClearText()">Clear Text</a>
                </td>
            </tr>

            <tr id="adiv" style="display: none;">
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="lblCustParent" runat="server" Text="<% $PayrollResources:Admin.CustomerInfo.CustParent.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CustomerInfo.CustParent.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtCustParent" runat="server" CssClass="adminInput"></asp:TextBox>
                </td>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="lblCustHour" runat="server" Text="<% $PayrollResources:Admin.CustomerInfo.CustHour.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CustomerInfo.CustHour.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtCustHour" runat="server" CssClass="adminInput"></asp:TextBox>
                </td>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="lblCustDateOfBirth" runat="server" Text="<% $PayrollResources:Admin.CustomerInfo.CustDateOfBirth.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CustomerInfo.CustDateOfBirth.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:DropDownList ID="ddlYearOfBrirth" runat="server" AutoPostBack="false">
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlMonthOfBrirth" runat="server" AutoPostBack="false">
                    </asp:DropDownList>
                </td>
                <td class="adminTitle"></td>
            </tr>
            <tr id="adiv2" style="display: none;">
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="ToolTipLabelControl4" runat="server" Text="<% $PayrollResources:Admin.CustomerSearch.Counselor.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CustomerSearch.Counselor.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtCounselor" runat="server" CssClass="adminInput"></asp:TextBox>
                </td>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="ToolTipLabelControl5" runat="server" Text="<% $PayrollResources:Admin.CustomerSearch.ResultVisa.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CustomerSearch.ResultVisa.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData" colspan ="2">
                    <asp:RadioButtonList ID="RdButtonListVisa" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="0">OK</asp:ListItem>
                        <asp:ListItem Value="1">Fail</asp:ListItem>
                        <asp:ListItem Value="2">Waiting</asp:ListItem>
                        <asp:ListItem Value="3">Close</asp:ListItem>
                        <asp:ListItem Value="4">Pending</asp:ListItem>
                        <asp:ListItem Value="5">Running</asp:ListItem>
                        <asp:ListItem Value="6">All</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                
            </tr>
            <tr id="adiv3" style="display: none;">
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="ToolTipLabelControl6" runat="server" Text="<% $PayrollResources:Admin.CustomerSearch.Studytravel.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CustomerSearch.Studytravel.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:RadioButtonList ID="RdButtonLisStudyTravel" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="0">DHọc</asp:ListItem>
                        <asp:ListItem Value="1">DLịch</asp:ListItem>
                        <asp:ListItem Value="2">Định cư</asp:ListItem>
                        <asp:ListItem Value="3">Khác</asp:ListItem>
                        <asp:ListItem Value="4">All</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="lblCustStady" runat="server" Text="<% $PayrollResources:Admin.CustomerInfo.CustSchool.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CustomerInfo.CustSchool.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtCustStudy" runat="server" CssClass="adminInput"></asp:TextBox>
                </td>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="ToolTipLabelControl7" runat="server" Text="<% $PayrollResources:Admin.CustomerSearch.ProCurator.Text %>"
                        ToolTip="<% $PayrollResources:Admin.CustomerSearch.ProCurator.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtProCurator" runat="server" CssClass="adminInput"></asp:TextBox>
                    <asp:HiddenField ID="hfdUserId" runat="server" />
                </td>
            </tr>
        </table>
    </div>

</div>

